
#include "test.h"
#include <exceptdef.h>
#include <iostream>
#include <string.hpp>

int main() {
    auto str1 = TingSTL::string("test1");
    auto str2 = TingSTL::string("test|125|4545");
    str1 = "test3es";
    auto len = str1.len();
    auto sub1 = str1.sub(1, 2);
    bool equal = str1 == str2;
    auto index = str1.find("es", 1);
    auto split = str2.split("|");

    testPrint(split, "str2 split by | : ");

    std::swap(str1, str2);
}